package org.jeecg.modules.basic.supplier.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 供应商信息
 * @Author: jeecg-boot
 * @Date:   2023-07-25
 * @Version: V1.0
 */
@Data
@TableName("wms_basic_supplier")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wms_basic_supplier对象", description="供应商信息")
public class BasicSupplier implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**使用组织*/
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @ApiModelProperty(value = "使用组织")
    @Excel(name = "使用组织", width = 15)
    private String sysOrgCode;
	/**供应商编码*/
	@Excel(name = "供应商编码", width = 15)
    @ApiModelProperty(value = "供应商编码")
    private String code;
	/**供应商名称*/
    @ApiModelProperty(value = "供应商名称")
    private String name;
	/**供应商类型*/
	@Excel(name = "供应商类型", width = 15, dicCode = "supplier_type")
	@Dict(dicCode = "supplier_type")
    @ApiModelProperty(value = "供应商类型")
    private String type;
	/**联系人*/
	@Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
    private String contacts;
	/**联系电话*/
    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String phone;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "is_open")
	@Dict(dicCode = "is_open")
    @ApiModelProperty(value = "状态")
    private String status;
	/**描述*/
    @Excel(name = "描述", width = 25)
    @ApiModelProperty(value = "描述")
    private String description;
    /**
     * 删除状态（0，正常，1已删除）
     */
    private Integer delFlag;
    /**
     * 租户id
     */
    private Integer tenantId;
    /**
     * 是否使用
     */
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否使用")
    @Excel(name = "是否使用", width = 25, dicCode = "yn")
    private Integer used;
}
